<template>
  <div>
    <img alt="Vue logo" src="../assets/logo.png" />
    <h1 @click="addnum">home</h1>
  </div>
</template>

<script setup lang="ts">
import { defineComponent } from 'vue';
import Http from '../utils/http';
</script>

<script lang="ts">
const addnum = () => {
  console.log(1);
  Http.get('123').then((res: any) => {
    console.log(res.data);
  });
};

export default defineComponent({
  name: 'home',
});
</script>

<style lang="scss">
h1 {
  color: skyblue;
}
</style>
